// https://github.com/vuejs/vue-cli/tree/dev/docs/zh
module.exports = {
    publicPath: './',
    productionSourceMap: false,
    devServer: {
        // https://github.com/chimurai/http-proxy-middleware#proxycontext-config
        proxy: {
            '/api': {
                target: 'http://cangdu.org:8001',
                changeOrigin: true,
                ws: true,
                xfwd: false,
                pathRewrite: {
                    '^/api': ''
                }
            }
        }
    },
    transpileDependencies: [
        "swiper",
        "dom7",
        "ssr-window"
    ]
}